﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace 第六次作业
{
    internal class Student
    {
        private Class classbelong;
        private string name;
        private int age;
        private int id;
        private string grade;

        public Student()
        {
        }

        public Student(Class classbelong, string name, int age, int id, string grade)
        {
            this.classbelong = classbelong;
            this.name = name;
            this.age = age;
            this.id = id;
            this.grade = grade;
        }

        /**
         * 获取
         * @return classbelong
         */
        public Class getClassbelong()
        {
            return classbelong;
        }

        /**
         * 设置
         * @param classbelong
         */
        public void setClassbelong(Class classbelong)
        {
            this.classbelong = classbelong;
        }

        /**
         * 获取
         * @return name
         */
        public string getName()
        {
            return name;
        }

        /**
         * 设置
         * @param name
         */
        public void setName(string name)
        {
            this.name = name;
        }

        /**
         * 获取
         * @return age
         */
        public int getAge()
        {
            return age;
        }

        /**
         * 设置
         * @param age
         */
        public void setAge(int age)
        {
            this.age = age;
        }

        /**
         * 获取
         * @return id
         */
        public int getId()
        {
            return id;
        }

        /**
         * 设置
         * @param id
         */
        public void setId(int id)
        {
            this.id = id;
        }

        /**
         * 获取
         * @return grade
         */
        public string getGrade()
        {
            return grade;
        }

        /**
         * 设置
         * @param grade
         */
        public void setGrade(string grade)
        {
            this.grade = grade;
        }

    }
}
